<%-- 
    Document   : Employee
    Created on : May 9, 2012, 9:28:43 AM
    Author     : Nguyen Hung
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <script>            
            $j(".rich-table-row:odd").addClass("odd");
        </script>

        <style type="text/css">

            .smsContent{
                float: left;
                margin: 10px;               
                width: 900px;

            }
            .rich-table-subheadercell {
                background-color: #2ba8e9;
            }
        </style>

    </head>

    <f:view>
        <body>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>           
            <div class="smsContent">                                                         
                <rich:dataTable  value="#{B630Bean.listNote}" rowKeyVar="row" var="item" columnClasses="col1"
                                 rowClasses="blue, white"
                                 id="abcxyz" width="920px">
                    <rich:column style="width:30px"> 
                        <f:facet name="header">
                            <h:outputText value="STT"/>
                        </f:facet>
                        <div style="text-align: center">
                            <h:outputText value="#{row+1}"/>
                        </div>

                    </rich:column>   
                    <rich:column  style="width:250px"> 
                        <f:facet name="header">
                            <h:outputText value="Tiêu đề" styleClass="col1" />
                        </f:facet>
                        <div>
                            <h:outputText value="#{item.bv651}"/>
                        </div>

                    </rich:column>                                 
                    <rich:column style="width:auto">
                        <f:facet name="header">
                            <h:outputText value="Nội dung"/>
                        </f:facet>
                        <div >
                            <h:outputText value="#{item.bv652}"/>
                        </div>
                    </rich:column> 
                    <rich:column style="width:250px;text-align:center;">
                        <f:facet name="header">
                            <h:outputText value="NV cập nhật"/>
                        </f:facet>
                        <div >
                            <h:outputText value="#{item.bl667}"/>
                        </div>
                    </rich:column> 
                    <rich:column style="width:35px;">
                        <f:facet name="header">
                            <h:outputText value="" />
                        </f:facet>
                        <div class="row6" style="display:<h:outputText value="#{B630Bean.displaycus}"/>">
                            <h:outputLink  rendered="#{loginSession.right.CUS_CMA_MOD}"  value="noteWorkChargeInput.jsp?action=editB650&page=workChargeCM.jsp&pb650=#{item.pb650}&pb630=#{B630Bean.pb630}&title=#{B630Bean.title}&height=300px&width=500px" styleClass="fancybox">
                                <img src="../images/edit.png" alt="edit" title="edit"/>
                            </h:outputLink>
                            <h:outputLink  rendered="#{loginSession.right.CUS_CMA_DEL}"  value="delete.jsp?id=#{item.pb650}&id2=#{B630Bean.pb630}&flag=B650&page=workChargeCM.jsp?&height=150px&width=300px" styleClass="fancybox">
                                <img src="../images/delete_1.png" alt="delete"  title="delete" />
                            </h:outputLink>
                        </div>

                    </rich:column>

                </rich:dataTable>
            </div>

            <%--      <a4j:repeat value="#{viewBean.listM300US}" var="item" >  
                      <div class="rich-table-row rich-table-firstrow cssHeight">
                          <div class="rich-table-cell cssLeft borderLft " style="width: 108px"><h:outputText value="#{item.hoten}" /></div>
                          <div class="rich-table-cell cssLeft" style="width: 148px"><h:outputText value="#{item.mv304}" /></div>
                          
                      </div>

                </a4j:repeat> --%>

        </body>
    </f:view>
</html>
